package com.zbkj.service.service;

import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.model.agent.Weather;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.request.WeatherSaveRequest;
import com.zbkj.common.request.WeatherSearchRequest;
import com.zbkj.common.response.WeatherPageDataResponse;
import com.zbkj.common.response.WeatherDetailResponse;

import java.util.List;
/**
* @author Caiyc
* @description WeatherService 接口
* @date 2025-08-07
*/
public interface WeatherService extends IService<Weather> {

    Boolean create(WeatherSaveRequest weatherSaveRequest);

    /**
     * 分页查询天气数据表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<WeatherPageDataResponse> getList(WeatherSearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 修改天气数据表
    * @param weatherRequest
    * @return
    */
    boolean update(WeatherSaveRequest weatherRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    WeatherDetailResponse getDetails(Integer id);

    void pullWeather(List<String> list);
}